// 定义首页模块数据类型
export interface ResponseData {
    code: number,
    message: string,
    ok: boolean
}

// 医院信息类型
export interface Hospital {
    id: string,
    createTime: string,
    updateTime: string,
    isDeleted: number,
    param: {
        hostypeString: string,
        fullAddress: string
    },
    hosname: string,
    hoscode: string,
    hostype: string,
    provinceCode: string,
    cityCode: string,
    districtCode: string,
    address: string,
    logoData: string,
    intro: string,
    route: string,
    status: number,
    bookingRule: {
        cycle: number,
        releaseTime: string,
        stopTime: string,
        quitDay: number,
        quitTime: string,
        rule: string[]
    }
}

export type Content = Hospital[]

export interface HospitalResponseData extends ResponseData {
    data: {
        content: Content,
        empty: boolean,
        first: boolean,
        last: boolean,
        number: number,
        numberOfElements: number,
        pageable: {
            sort: { sorted: boolean, unsorted: boolean, empty: boolean },
            pageNumber: number,
            pageSize: number,
            offset: number,
            paged: boolean,
            unpaged: boolean
        },
        size: number,
        sort: { sorted: boolean, unsorted: boolean, empty: boolean }
        totalElements: number,
        totalPages: number
    }
}


export interface HospitalLevelAndRegion {
    createTime: string,
    updateTime: string,
    dictCode: string,
    hasChildren: boolean,
    id: number,
    parentId: number,
    isDeleted: number,
    name: string,
    value: string,
    param: {}
}

export type HospitalLevelAndRegionArr = HospitalLevelAndRegion[]

export interface HospitalLevelAndRegionResponseData extends ResponseData {
    data: HospitalLevelAndRegionArr
}

export interface HospitalInfoResponseData extends ResponseData {
    data: Content
}